<?php

define("_SessionName", "insertAccount");
require("header.php");

$json = file_get_contents('php://input'); 
$data = json_decode($json, true);

// var_dump($data);

$sql = "INSERT INTO `account`(`account`, `psd`) VALUES
('{$data["account"]}','{$data["psd"]}')";

// echo $sql . "\n";

if ($conn->query($sql) === TRUE) {
    echo "Succeeded.";
} else {
    echo "Error: " . $sql . "\n" . $conn->error;
}
 
$conn->close();

?>